<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>VIP管理系统-控制台</title>
		<meta name="keywords" content="song" />
		<meta name="description" content="song" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/Public/assets/css/font-awesome.min.css" />


		<link rel="stylesheet" href="/Public/assets/css/family.css" />

		<link rel="stylesheet" href="/Public/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/Public/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="/Public/assets/css/ace-skins.min.css" />
	   <script src="/Public/assets/js/jquery-2.0.3.min.js"></script>
		<script src="/Public/admin/js/base.js"></script>
		
<style type="text/css">
    .table>tbody>tr>td{ padding: 4px; vertical-align: middle;}
     body{ background: #fff;}
    .footer {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
   
    left: 0;
    line-height: 50px;
    text-align: right;
    text-align: right;
    border-top: solid 1px #eee;
    padding-right: 10px;
    z-index: 999999999999999;
}
</style>

	</head>
      <style type="text/css">
      .datalist_current_ahref{
	background: #6fb3e0!important;
		}
		.btn-light,.btn-info{
		   margin-right: 3px;
		}
</style>
<body>

    <form action="<?php echo U('Nav/menu');?>" method="post" id="searchForm">
     <input type="hidden" name="parent_id" value="0" id="parent_id">
    <!--弹窗插件-->
<link rel="stylesheet" href="/Public/artdialog/skins/blue.css" />
<script type="text/javascript" src="/Public/artdialog/artDialog.js"></script>
<script type="text/javascript" src="/Public/artdialog/plugins/iframeTools.source.js"></script>
<script type="text/javascript" src="/Public/artdialog/common_opfun.js"></script>

<!--提示插件-->
<link rel="stylesheet" href="/Public/notifit/notifIt.css" />
<script src="/Public/notifit/notifIt.js"></script>



    <div class="row">
        <div class="col-md-12">
            <div class="block-web">
                <div class="header">
                    <h3 class="content-header">菜单列表</h3>
                </div>

                <div class="porlets-content">
                    <div class="table-responsive">
                        <div id="order_list_item_content">
                            <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                <img src="/Public/admin/images/load3.gif" />
                                加载中...
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
    <div class="footer" >
        <button class="btn btn-default bt_close" type="button" onclick="art.dialog.open.api.close();" >关闭</button>
    </div>

<!--引入弹窗插件-->
    <div id="_show_public_loading_div" class="_show_public_loading_div" style=" position: fixed; left: 45%;top: 0px;height: 40px;
	    line-height: 40px;
	    width: 150px;
	    text-align: center;
	    background: #5CB85C;
	    border-bottom-left-radius: 8px;
	    border-bottom-right-radius: 8px;
	    border: 2px solid #F9F7F7;
	    border-top: none;
	    box-shadow: 0px 0px 10px #B1ADAD;
	    color: #FFF;z-index:99999999; ">
     <img src="/Public/Admin/images/icon32_loading_light218877.gif" style="width:20px;vertical-align: middle;">
        处理中...
    </div>

		<!-- basic scripts -->

		<!--[if !IE]> -->
			<script src="/Public/assets/js/jquery-2.0.3.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='/Public/assets/js/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/Public/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
		</script>
		<script src="/Public/assets/js/bootstrap.min.js"></script>
		<script src="/Public/assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="assets/js/excanvas.min.js"></script>
		<![endif]-->
        <script src="/Public/assets/js/ace-extra.min.js"></script>
		<script src="/Public/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="/Public/assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="/Public/assets/js/jquery.slimscroll.min.js"></script>
		<script src="/Public/assets/js/jquery.easy-pie-chart.min.js"></script>
		<script src="/Public/assets/js/jquery.sparkline.min.js"></script>
		<script src="/Public/assets/js/flot/jquery.flot.min.js"></script>
		<script src="/Public/assets/js/flot/jquery.flot.pie.min.js"></script>
		<script src="/Public/assets/js/flot/jquery.flot.resize.min.js"></script>
		

		<!-- ace scripts -->

		<script src="/Public/assets/js/ace-elements.min.js"></script>
		<script src="/Public/assets/js/ace.min.js"></script>





			


		<!-- inline scripts related to this page -->






<script type="text/javascript">
    $(function(){
        goSearch("#searchForm","order_list_item_content");
       $(document).keydown(function(event){ 
        if(event.keyCode==13){ 
        load(); 
        } 
            })
    });

    function load(){
        goSearch("#searchForm","order_list_item_content");
    }

    function toParentChilder(id){
        $('#parent_id').val(id);
        goSearch("#searchForm","order_list_item_content");
    }

    function delete_ok(id){  
        art.dialog({
            content: "是否确认删除，如果是会自动删除关联数据",
            icon: 'question',
            lock: true,
            opacity: 0.2,
            id:'dele',
            ok: function () {
                var url="<?php echo U('Nav/delete_ok');?>";
                $.ajax({
                    'url':url,
                    'data':{id:id},
                    'dataType':'json',
                    'type':'post',
                    success:function(data){

                        goSearch("#searchForm","order_list_item_content");

                        //_reload_currentpage_datalist('order_list_item_content');
                        // goSearch("#searchForm","order_list_item_content");
                        var retstatus = data.status == 1 ? "1" : "0";
                        showvfmsg(retstatus, data.info, 1900);

                    },error:function(){
                        showvfmsg('error','请求服务器失败',2000);
                    },complete:function(){

                    }
                });


            },
            cancelVal: '取消',
            cancel: true
        });
    }

    function return_up(){
        var url="<?php echo U('Nav/return_up');?>";
        $.post(url,{"parent_id":$("#parent_id").val()},function(resultObj){
               if(resultObj.status==1){
                   $("#parent_id").val(resultObj.info);
                   goSearch("#searchForm","order_list_item_content");
               }else{
                   showvfmsg('error',resultObj.info,2000);
               }
        });
    }

    function return_main(){
        $("#parent_id").val(0);
        goSearch("#searchForm","order_list_item_content");
    }

</script>

</body>
</html>